Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use improved regex for script and style from svelte #799

Merged
merged 3 commits into from
Nov 21, 2023
Merged

Conversation

dominikg
Copy link
Member

see #796

not a fan of the complexity in these regexes or the fact that we copy them.

For the script lang regex in compile.js we could think about using a spy preprocessor to get the attribute value.
For the error messages, should this be something svelte itself emits so that other tools also benefit?

packages/vite-plugin-svelte/src/utils/error.js Outdated Show resolved Hide resolved
@dominikg dominikg merged commit c2017e0 into main Nov 21, 2023
5 checks passed
@dominikg dominikg deleted the fix/code-re branch November 21, 2023 12:58
@github-actions github-actions bot mentioned this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants